<include file='./header' />
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<link rel="stylesheet" type="text/css" href="__ROOT__/css/zc.css"/>
<script type="text/javascript" src="__ROOT__/js/zc.js"></script>

<script type="text/javascript">
var wait=60;
$(function() {
	tabs(".zc_tab","on",".zc_con"); 
	onloadImg(".zc_body");

	$("#password").blur(function(){checkPassword(this,"#spanPassword")});//密码格式判断
	$("#show_password").click(function(){swichPassword(this,"#password")});//显示和隐藏密码
	
	
	//提交邮箱找回密码
	//$('#btnEmailFindpw').click(function(){
		//if(!checkPassword("#password","#spanPassword")){return false;}//邮箱地址格式判断
		//$(".onload").show();//显示loading
		
		$('#btnEmailFindpw').click(function(){
			//$(".onload").show();//显示loading
			$.ajax({  
				type: "post",  
				url: "__URL__/findEmailPwdChange",  
				dataType: 'json',
				data: {email:$("#spanEmail").text(),password:$("#txtPassword").val()},
				beforeSend: function(XMLHttpRequest){   
				},  
				success: function(json){
					if(json.data == 1){
						$("#spanAlert").html("<i class='fa fa-check-circle'></i>"+ json.info +"</span>").show();
						window.location.href='__URL__/login';
					}else{
						$("#spanAlert").html("<i class='fa fa-times-circle'></i>"+ json.info +"</span>").show();
					}
					$("#zcLoading1").hide();
				} 
			})
		})
	//})
})      

</script>
</head>

<body>

<!--注册-->
<div class="main">
	<div class="zc_main">
    	<div class="zc_top">
        	<img src="__ROOT__/images/logo2.png" />
        </div>
        <div class="zc_body">
        	<h2>您要找回的7min的邮箱帐号是<span id="spanEmail">{$email}</span></h2>
            <div class="zc_con">
                <div class="zc_con_list">
                     <p>
                        <label>设置密码</label>
                        <input name="password" class="form-control w60p" placeholder="长度在6-12之间，只能包含字符、数字和下划线" type="password" id="txtPassword" maxlength="12">
                        <a class="btn btn-success btn-lg showpw" href="javascript:void(0)" id="show_password"><i class="fa fa-eye"></i></a>
                        <span class="notice_wrong" style="display:none" id="spanPassword"></span>
                    </p>
                    <span id="spanAlert"></span>
                    <p style="padding-left:20%;position:relative;">
                        <input class="btn btn-danger" value="提 交" id="btnEmailFindpw" type="button">
                    </p>   

                </div>
            </div>
            <div class="clear"></div>
        </div>
        <!--加载中-->
        <div class="onload" style="display:none">
            <div>
            	<img src="__ROOT__/images/onload.gif" />
            </div>
        </div>
    </div>
</div>
</body>
</html>
